
import { Entity, NgField, NgObject, EntityList, NgList, NgDynamic, DynamicEntity, NgEntity } from '@farris/devkit';
import { YlfxEntity } from './ylfxentity';

@NgEntity({
    originalCode: "jmsmd",
    nodeCode: "jmsmds",
    allowEmpty: true
})
export class JmsmdEntity extends Entity {

    @NgField({
        originalDataField: 'ID',
        dataField: 'id',
        primary: true,
        originalDataFieldType: 'String',
        initValue: '',
        path: 'ID',

        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    id: string;

    @NgField({
        originalDataField: 'ParentID',
        dataField: 'parentID',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'ParentID',

        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    parentID: string;

    @NgField({
        originalDataField: 'mdbh',
        dataField: 'mdbh',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'mdbh',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    mdbh: string;

    @NgField({
        originalDataField: 'mdmc',
        dataField: 'mdmc',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'mdmc',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    mdmc: string;

    @NgField({
        originalDataField: 'mdsf',
        dataField: 'mdsf',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'mdsf',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    mdsf: string;

    @NgField({
        originalDataField: 'mdszqy',
        dataField: 'mdszqy',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'mdszqy',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    mdszqy: string;

    @NgField({
        originalDataField: 'mdxxdz',
        dataField: 'mdxxdz',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'mdxxdz',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    mdxxdz: string;

    @NgField({
        originalDataField: 'mddz',
        dataField: 'mddz',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'mddz',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    mddz: string;

    @NgField({
        originalDataField: 'mdlxdh',
        dataField: 'mdlxdh',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'mdlxdh',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    mdlxdh: string;

    @NgField({
        originalDataField: 'mdyj',
        dataField: 'mdyj',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'mdyj',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    mdyj: string;

    @NgField({
        originalDataField: 'tyshxydm',
        dataField: 'tyshxydm',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'tyshxydm',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    tyshxydm: string;

    @NgField({
        originalDataField: 'mdjmf',
        dataField: 'mdjmf',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'mdjmf',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    mdjmf: string;

    @NgList({
        dataField: 'ylfxs',
        originalDataField: '',
        type: YlfxEntity

    })

    ylfxs: EntityList<YlfxEntity>;
}